Optimal. Leaf size=94 \[ \frac {13-6 x}{506 \left (3-x+2 x^2\right )}+\frac {241 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{484 \sqrt {31}}-\frac {13}{968} \log \left (3-x+2 x^2\right )+\frac {13}{968} \log \left (2+3 x+5 x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {988, 1086,
648, 632, 210, 642} \begin {gather*} \frac {241 \text {ArcTan}\left (\frac {1-4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \text {ArcTan}\left (\frac {10 x+3}{\sqrt {31}}\right )}{484 \sqrt {31}}+\frac {13-6 x}{506 \left (2 x^2-x+3\right )}-\frac {13}{968} \log \left (2 x^2-x+3\right )+\frac {13}{968} \log \left (5 x^2+3 x+2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 988
Rule 1086
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right )^2 \left (2+3 x+5 x^2\right )} \, dx &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {\int \frac {-1892-1067 x+330 x^2}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx}{5566}\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {\int \frac {-3509+72358 x}{3-x+2 x^2} \, dx}{1346972}-\frac {\int \frac {-150282-180895 x}{2+3 x+5 x^2} \, dx}{1346972}\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {241 \int \frac {1}{3-x+2 x^2} \, dx}{22264}-\frac {13}{968} \int \frac {-1+4 x}{3-x+2 x^2} \, dx+\frac {13}{968} \int \frac {3+10 x}{2+3 x+5 x^2} \, dx+\frac {69}{968} \int \frac {1}{2+3 x+5 x^2} \, dx\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {13}{968} \log \left (3-x+2 x^2\right )+\frac {13}{968} \log \left (2+3 x+5 x^2\right )+\frac {241 \text {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )}{11132}-\frac {69}{484} \text {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )\\ &=\frac {13-6 x}{506 \left (3-x+2 x^2\right )}+\frac {241 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{484 \sqrt {31}}-\frac {13}{968} \log \left (3-x+2 x^2\right )+\frac {13}{968} \log \left (2+3 x+5 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 94, normalized size = 1.00 \begin {gather*} \frac {13-6 x}{506 \left (3-x+2 x^2\right )}-\frac {241 \tan ^{-1}\left (\frac {-1+4 x}{\sqrt {23}}\right )}{11132 \sqrt {23}}+\frac {69 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{484 \sqrt {31}}-\frac {13}{968} \log \left (3-x+2 x^2\right )+\frac {13}{968} \log \left (2+3 x+5 x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 77, normalized size = 0.82
method | result | size |
risch | \(\frac {-\frac {3 x}{506}+\frac {13}{1012}}{x^{2}-\frac {1}{2} x +\frac {3}{2}}+\frac {69 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{15004}+\frac {13 \ln \left (100 x^{2}+60 x +40\right )}{968}-\frac {13 \ln \left (16 x^{2}-8 x +24\right )}{968}-\frac {241 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{256036}\) | \(76\) |
default | \(-\frac {\frac {66 x}{23}-\frac {143}{23}}{484 \left (x^{2}-\frac {1}{2} x +\frac {3}{2}\right )}-\frac {13 \ln \left (2 x^{2}-x +3\right )}{968}-\frac {241 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{256036}+\frac {13 \ln \left (5 x^{2}+3 x +2\right )}{968}+\frac {69 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{15004}\) | \(77\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 78, normalized size = 0.83 \begin {gather*} \frac {69}{15004} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {241}{256036} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {6 \, x - 13}{506 \, {\left (2 \, x^{2} - x + 3\right )}} + \frac {13}{968} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {13}{968} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.65, size = 117, normalized size = 1.24 \begin {gather*} \frac {73002 \, \sqrt {31} {\left (2 \, x^{2} - x + 3\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - 14942 \, \sqrt {23} {\left (2 \, x^{2} - x + 3\right )} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + 213187 \, {\left (2 \, x^{2} - x + 3\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) - 213187 \, {\left (2 \, x^{2} - x + 3\right )} \log \left (2 \, x^{2} - x + 3\right ) - 188232 \, x + 407836}{15874232 \, {\left (2 \, x^{2} - x + 3\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 102, normalized size = 1.09 \begin {gather*} \frac {13 - 6 x}{1012 x^{2} - 506 x + 1518} - \frac {13 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{968} + \frac {13 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{968} - \frac {241 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{256036} + \frac {69 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{15004} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.41, size = 78, normalized size = 0.83 \begin {gather*} \frac {69}{15004} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {241}{256036} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) - \frac {6 \, x - 13}{506 \, {\left (2 \, x^{2} - x + 3\right )}} + \frac {13}{968} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {13}{968} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.58, size = 96, normalized size = 1.02 \begin {gather*} -\frac {\frac {3\,x}{506}-\frac {13}{1012}}{x^2-\frac {x}{2}+\frac {3}{2}}-\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {13}{968}+\frac {\sqrt {31}\,69{}\mathrm {i}}{30008}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {13}{968}+\frac {\sqrt {31}\,69{}\mathrm {i}}{30008}\right )+\ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {13}{968}+\frac {\sqrt {23}\,241{}\mathrm {i}}{512072}\right )-\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {13}{968}+\frac {\sqrt {23}\,241{}\mathrm {i}}{512072}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________